package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:char(32)"`
}
type Post struct {
	gorm.Model
	Title     string `gorm:"type:varchar(30)"`
	Content   string `gorm:"type:text"`
	Img       string `gorm:"varchar(255)"`
	LikeCount int    `gorm:"type:int;default:0"`
}
type Like struct {
	gorm.Model
	UserID int `gorm:"type:int"`
	PostID int `gorm:"type:int"`
}
